package com.test.shopping.service.impl;

import com.test.shopping.pojo.User;
import com.test.shopping.mapper.userMapper;
import com.test.shopping.service.userService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userServiceImpl implements userService {
    @Autowired
    private userMapper userMapper;
    @Override
    public User getUserBalance(User user) {
        return userMapper.getUserBalance(user);
    }

    @Override
    public void consume(User user) {
        userMapper.consume(user);
    }

    @Override
    public void refund(User user) {
        userMapper.refund(user);
    }
}
